From 77734f044590a936e743bde526d077ea909ea129 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 23 Feb 2003 01:23:40 +0000 Subject: [PATCH] Geo geocache icon mappings on input. --- gpsbabel/mapsource.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gpsbabel/mapsource.c b/gpsbabel/mapsource.c index 1a74779ca..76820e32b 100644 --- a/gpsbabel/mapsource.c +++ b/gpsbabel/mapsource.c @@ -203,6 +203,7 @@ static icon_mapping_t icon_table[] = { { 16402, "Seaplane Base" }, #if SOMEONE_ELSE +/* FIXME: Find icons for these */ { 1, "Virtual cache"}, { 2, "Micro-Cache"}, { 3, "Multi-Cache"}, @@ -218,7 +219,6 @@ arglist_t mps_args[] = { {0, 0, 0} }; - const char * mps_find_desc_from_icon_number(const int icon) { @@ -383,6 +383,10 @@ mps_waypt_pr(const waypoint *wpt) icon = mps_find_icon_number_from_desc(wpt->icon_descr); + if (get_cache_icon(wpt)) { + icon = mps_find_icon_number_from_desc(get_cache_icon(wpt)); + } + le_write32(&reclen, reclen); fwrite(&reclen, 4, 1, mps_file_out); fwrite("W", 1, 1, mps_file_out); -- 2.30.2